package com.lihuinch.ti4j.chap5.practice;

/**
 * 调用包含protected变量和方法的类
 * @author lihu
 * @date 2018/1/9
 */
public class CallProtected {
    public static void main(String[] args) {
        HasProtected hasProtected = new HasProtected();

        // 同包下可访问protected对象？ 是的
        System.out.println(hasProtected.protectedInt);
        hasProtected.protectedFunction();
    }
}
